<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Tipask's Control Panel</title>
        <meta http-equiv="Content-Type" content="text/html; charset={TIPASK_CHARSET}">
        <link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
        <script src="js/jquery.js" type="text/javascript"></script>
        <script src="js/admin.js" type="text/javascript"></script>
        <SCRIPT src="js/calendar.js" type="text/javascript"></SCRIPT>
    </head>
    <body>
        <div id="append"></div>
        <div class="container">
            <!--{if isset($message)}-->
            <!--{eval $type=isset($type)?$type:'correctmsg'; }-->
            <div class="{$type}"><p>{$message}</p></div>
            <!--{/if}-->
            <h4>[共 {$informnum} 条举报记录]</h4>
            <div class="mainbox">
                <form name="userForm" action="index.php?admin_inform/remove{$setting['seo_suffix']}" method="POST">
                    <table class="datalist fixwidth" >
                        <tr>
                            <th><input class="checkbox" id="chkall" onclick="checkall('qid[]')" type="checkbox" name="chkall"><label for="chkall">全选</label></th>
                            <th>举报的问题</th>
                            <th>举报内容</th>
                            <th>举报原因</th>
                            <th>举报次数</th>
                            <th>举报时间</th>
                        </tr>
                        <!--{loop $informlist $inform}-->
                        <tr>
                            <td class="option"><input class="checkbox" type="checkbox" value="{$inform['qid']}" name="qid[]"></td>
                            <td><a href="{URL question/view/$inform['qid']}" target="_blank">{$inform['title']}</a></td>
                            {eval $fcontent = cutstr($inform['content'],30)}
                            <td title="{$inform['content']}">{$fcontent}</td>
                            {eval $freason = cutstr($inform['reasons'],30)}
                            <td title="{$inform['reasons']}">{$freason}</td>
                            <td><font color="red" size="4">{$inform['counts']}</font></td>
                            <td>{$inform['time']}</td>
                        </tr>
                        <!--{/loop}-->
                        <tr class="nobg">
                            <td colspan="6" class="tdpage"><div class="pages">{$departstr}</div></td>
                        </tr>
                        <tr class="nobg">
                            <td colspan="6"><input class="btn" type="button" name="delete" onclick="ondelete();" value="删除" /></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </body>
    <script type="text/javascript">
        function ondelete(){
            if($("input[name='qid[]']:checked").length == 0){
                alert('你没有选择任何一条举报!');
                return false;
            }
            if(confirm('确认删除该举报记录?此操作不可恢复!')==false){
                return false;
            }
            document.userForm.action="index.php?admin_inform/remove{$setting['seo_suffix']}";
            document.userForm.submit();
        }
    </script>
</html>
